<%@ page language="java" contentType="text/html" import="java.util.*"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="logincheck.jsp" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to Foobar</title>
    </head>
    <body>
        <s:url action="viewdetails.action" var="view">
            <s:param name="customer.username"><s:property value="#session.login.username"/></s:param>
        </s:url>
        Welcome Back! <a href=<s:property value="#view" />><s:property value="#session.login.username"/></a> <br>
        <b>Login Time:</b><%= new Date(session.getLastAccessedTime())%>
        <br/><br/>
        <a href="logout.action">Logout</a>
        <br/>
    </body>
</html>
